feat: allow an undefined TEA support level when registering a student - #700
Closed
ErickMascarenhas wants to merge 1 commit into
Closed
Conversation
ErickMascarenhas
changed the base branch from
refactor/settings-remove-tutorial-and-language
to
develop
August 6, 2026 00:14
ErickMascarenhas
changed the base branch from
develop
to
refactor/settings-remove-tutorial-and-language
August 6, 2026 00:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@
Summary
indefinidoao ENUMnivel_suporte_teapor migration aditiva: nenhum registro existente é alterado e os três níveis continuam válidos. Comoalunos.nivel_suporteéNOT NULL, "ainda não definido" precisava ser um valor do próprio tipo, e nãoNULL.toSupportLevelCode()(features/students/utils/support-level.ts), substituindo as duas implementações duplicadas emuse-studentseuse-team-data. O nível é identificado pelo dígito, única parte comum a todas as grafias e ao código gravado; sem dígito, o resultado éindefinido— que agora também é o destino correto de um valor vazio ou desconhecido, antes silenciosamente convertido emnivel_1.students.form.supportOptionUndefined,students.support.undefinedereports.supportLevelUndefinedem pt e en.Validation:
npx tsc --noEmit— 0 erros.npm run lint— 0 erros (7 warnings pré-existentes, nenhum novo).npx typedoc@0.28.19— gerado sem avisos.nivel_1|nivel_2|nivel_3emapp/,components/,features/elib/para garantir que todo mapeador de nível de suporte trata o novo valor.supabase db lintnão pôde ser executado localmente (Docker indisponível nesta máquina); a migration é validada pelo CI do PR.